

#ifndef CAUSALCHAT_H
#define CAUSALCHAT_H

//#define UART_ECHO /* buggy */

#define MAX_NODES 2 /* how many nodes are in the radio network */

/* TODO: replace by linked list later? */
#define MAX_RCO_QUEUE 10 /* how many elements can be queued */

#define MSG_LENGTH 20 /* including stringterm */

#define TIMER_PERIOD_MILLI 250


enum {
    RCO_COMM = 6   
};

typedef nx_struct rco_msg {
  nx_uint8_t  nodeid;   /* ID of node */
  nx_uint16_t vc;       /* vector clock of nodeid */
  nx_uint8_t  msg_len;
  nx_uint8_t  msg[MSG_LENGTH];   /* chat message buffer */
} rco_msg_t;

#endif /* CAUSALCHAT_H */
